#include <header.h>

int main(){

    int fd = open("1.pipe", O_RDONLY);

    while(1){
        char buf[1024] = {0};
        read(fd, buf, sizeof(buf));
        printf("buf: %s \n", buf);

        sleep(2);
    }

    close(fd);
    return 0;
}

